package datatypes.tv;

 

public class tvGuestRole extends tvRole{
 
   private String episodes_appeared_in;
   private String special_performance_type;
 
  
   
public tvGuestRole(){
	super();
}
   
public tvGuestRole(String name, String id,String actor, String character,
		String episodes_app_in,String special_performance_type) {
	super(name,id,actor,character);
	this.episodes_appeared_in = episodes_app_in;
	this.special_performance_type = special_performance_type;
}

public void init(String name, String gr_id,String actor, String character,
		String episodes_app_in,String special_performance_type){
	this.name = name;
	this.id = gr_id;
	this.actor = actor;
	this.character = character;
	this.episodes_appeared_in = episodes_app_in;
	this.special_performance_type = special_performance_type;
}

public void init(tvGuestRole gr){
	this.name = gr.getName();
	this.id = gr.getId();
	this.actor = gr.getActor();
	this.character = gr.getCharacter();
	this.episodes_appeared_in = gr.getEpisodes_appeared_in();
	this.special_performance_type = gr.getSpecial_performance_type();
}
  
public String toString(){
	StringBuilder sb = new StringBuilder();
	
	if(name != null && name.length() > 0){
		sb.append("name: " + name + "\n");
	}
	
	if(id != null && id.length() > 0){
		sb.append("id: " + id + "\n");
	}
	
	if(actor != null && actor.length() > 0){
		sb.append("actor: " + actor + "\n");
	}
	
	if(character != null && character.length() > 0){
		sb.append("charachter: " + character + "\n");
	}
	
	if(episodes_appeared_in != null && episodes_appeared_in.length() > 0)
	sb.append("episodes_appeared_in: " + episodes_appeared_in + "\n");

	if(special_performance_type != null && special_performance_type.length() > 0 )
	sb.append("special_performance_type: " + special_performance_type + "\n");
	
	return sb.toString();
}

public String getSpecial_performance_type() {
	return special_performance_type;
}

public void setSpecial_performance_type(String special_performance_type) {
	this.special_performance_type = special_performance_type;
}

public String getActor() {
	return actor;
}

public void setActor(String actor) {
	this.actor = actor;
}

public String getEpisodes_appeared_in(){
	return this.episodes_appeared_in;
}

 

   
}
